package com.suedawn.bookmanagesystem.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 图书详情查询对象
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class BookDetailQueryDTO extends PageQueryDTO {

    @ApiModelProperty("详情ID")
    private Integer detailId;

    @ApiModelProperty("图书ID")
    private Integer bookId;

    @ApiModelProperty("条形码")
    private String barcode;

    @ApiModelProperty("状态")
    private Object status;

    @ApiModelProperty("购买日期范围-开始")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date purchaseDateStart;

    @ApiModelProperty("购买日期范围-结束")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date purchaseDateEnd;

    @ApiModelProperty("购买价格范围-最小")
    private BigDecimal minPrice;

    @ApiModelProperty("购买价格范围-最大")
    private BigDecimal maxPrice;

    @ApiModelProperty("位置编码")
    private String locationCode;

    @ApiModelProperty("图书标题")
    private String title;
} 